package com.design.proxy.dynamicproxy;

/**
 * 动态代理
 * @Author:         cong zhi
 * @CreateDate:     2021/3/21 11:33
 * @UpdateUser:     cong zhi
 * @UpdateDate:     2021/3/21 11:33
 * @UpdateRemark:   修改内容
 * @Version:        1.0
 */
public class Test {

    public static void main(String[] args) {
        JdkMeipo jdkMeipo = new JdkMeipo();
        Person zhangsan = jdkMeipo.getInstance(new Zhansan());
        zhangsan.findLove();

        Person zhaoliu = jdkMeipo.getInstance(new Zhaoliu());
        zhaoliu.findLove();
    }
}
